﻿using System.Web.Mvc;

namespace Ams.Mvc.Bootstrap
{
    public abstract class BootstrapWebViewPage : WebViewPage
    {
        public BootstrapHelper Bootstrap { get; set; }

        public override void InitHelpers()
        {
            base.InitHelpers();
            Bootstrap = new BootstrapHelper(base.ViewContext, this);
        }
    }

    public abstract class BootstrapWebViewPage<TModel> : WebViewPage<TModel>
    {
        public BootstrapHelper<TModel> Bootstrap { get; set; }

        public override void InitHelpers()
        {
            base.InitHelpers();
            Bootstrap = new BootstrapHelper<TModel>(base.ViewContext, this);
        }
    }
}
